package com.hopu.service.Impl;

import com.hopu.mapper.MyareaMapper;
import com.hopu.pojo.Myarea;
import com.hopu.service.AreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AreServiceImpl implements AreService {

    @Autowired
    MyareaMapper myareaMapper;

    @Override
    public List<Myarea> findAll() {
        return myareaMapper.findAll();
    }

    @Override
    public Myarea findByid(Integer aid) {
        return myareaMapper.findByid(aid);
    }

    @Override
    public Myarea finfByname(String aname) {
        return myareaMapper.finfByname(aname);
    }

    @Override
    public Integer updateare(Myarea myarea) {
        return myareaMapper.updateare(myarea);
    }

    @Override
    public Integer addare(Myarea myarea) {
        return myareaMapper.addare(myarea);
    }
}
